export default {
  namespaced: true,
  state: () => ({
    address: JSON.parse(uni.getStorageSync('address') || '{}' )
     // address: uni.getStorageSync('address') ? JSON.parse(uni.getStorageSync('address')) : null
  }),
  mutations: {
    addAddress (state, data) {
      state.address = data
      uni.setStorageSync('address', JSON.stringify(data))
    }
  }
}